package com.haihong.consumer.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * 远程调用接口
 *
 * @author admin
 * @version 1.0  2019/8/24 14:57
 */
@FeignClient(name = "provider",fallback = RemoteInterfaceImpl.class)
public interface RemoteInterface {

    @RequestMapping(value = "/user/getInfo",method = RequestMethod.GET)
    public Object getUserInfo(@RequestParam(value = "userName")String userName);
}
